package com.aiti.lulian.entity;

import com.aiti.base.core.base.entity.BaseEntity;
import com.baomidou.mybatisplus.annotation.*;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.Date;

@Builder
@AllArgsConstructor
@NoArgsConstructor
@Data
@ApiModel("企业字典值实体")
@TableName("show_enterprise_dict_data")
public class EnterpriseDictData extends BaseEntity {

    @ApiModelProperty("主键")
    @TableId(value = "base_id", type = IdType.ASSIGN_UUID)
    private String baseId;

    @ApiModelProperty("字典类型编码")
    @TableField("dict_type_no")
    private String dictTypeNo;

    @ApiModelProperty("字典类型名称")
    @TableField("dict_type_name")
    private String dictTypeName;

    @ApiModelProperty("父级主键")
    @TableField("base_parent_id")
    private String baseParentId;

    @ApiModelProperty("字典名称")
    @TableField("base_name")
    private String baseName;

    @ApiModelProperty("字典类型主键")
    @TableField("type_id")
    private String typeId;

    @ApiModelProperty("排序")
    @TableField("sort")
    private Integer sort;

    /**
     * （'0'：不允许，'1'：允许）
     */
    @ApiModelProperty("是否允许修改")
    @TableField("is_updated")
    private String isUpdated;

    @ApiModelProperty("所属模块")
    @TableField("module")
    private String module;

    @ApiModelProperty("企业ID")
    @TableField("enterprise_id")
    private String enterpriseId;

    @ApiModelProperty("创建者")
    @TableField("creator")
    private String creator;

    @ApiModelProperty("创建时间")
    @TableField(value = "base_create_time", fill = FieldFill.INSERT)
    private Date baseCreateTime;

    @ApiModelProperty("更新者")
    @TableField("update_by")
    private String updateBy;

    @ApiModelProperty("更新时间")
    @TableField(value = "base_update_time", fill = FieldFill.UPDATE)
    private Date baseUpdateTime;
}
